﻿using SqlSugar;

namespace StoreAPI.Models
{
    public class Product
    {
        public Product()
        { }
        #region Model
        private int _productid;
        private string _productno;
        private string _productname;
        private decimal? _mintemperature = 0M;
        private decimal? _maxtemperature = 0M;
        private string _remark;
        private int _status = 0;
        private int _createuserid;
        private DateTime _createtime = DateTime.Now;
        private int? _lastupdateuserid;
        private DateTime? _lastupdatetime;
        /// <summary>
        /// 产品Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProductId
        {
            set { _productid = value; }
            get { return _productid; }
        }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductNo
        {
            set { _productno = value; }
            get { return _productno; }
        }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName
        {
            set { _productname = value; }
            get { return _productname; }
        }
        /// <summary>
        /// 产品适应的最小温度
        /// </summary>
        public decimal? MinTemperature
        {
            set { _mintemperature = value; }
            get { return _mintemperature; }
        }
        /// <summary>
        /// 产品适应的最大温度
        /// </summary>
        public decimal? MaxTemperature
        {
            set { _maxtemperature = value; }
            get { return _maxtemperature; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        /// <summary>
        /// 状态（0正常，1禁用）
        /// </summary>
        public int Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 创建者Id
        /// </summary>
        public int CreateUserId
        {
            set { _createuserid = value; }
            get { return _createuserid; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 最后一次修改者Id
        /// </summary>
        public int? LastUpdateUserId
        {
            set { _lastupdateuserid = value; }
            get { return _lastupdateuserid; }
        }
        /// <summary>
        /// 最后一次修改时间
        /// </summary>
        public DateTime? LastUpdateTime
        {
            set { _lastupdatetime = value; }
            get { return _lastupdatetime; }
        }
        #endregion Model
    }
}
